package algorithm.Genetic.Entity;

import java.util.ArrayList;

public class Task {
    /*
    任务实体类，每个任务七个属性
     */
    private String name;
    private ArrayList<Location> location;
    private int priority;
    private int Sensor;
    private Float resolution;
    private Time time;

    public Duration getDuration() {
        return duration;
    }

    public void setDuration(Duration duration) {
        this.duration = duration;
    }

    private Duration duration;
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<Location> getLocation() {
        return location;
    }

    public void setLocation(ArrayList<Location> location) {
        this.location = location;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public int getSensor() {
        return Sensor;
    }

    public void setSensor(int sensor) {
        Sensor = sensor;
    }

    public Float getResolution() {
        return resolution;
    }

    public void setResolution(Float resolution) {
        this.resolution = resolution;
    }

    public Time getTime() {
        return time;
    }

    public void setTime(Time time) {
        this.time = time;
    }

}
